home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / gadget / r3browgd.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.1 KB  |  90 lines

  1.  
  2. // JavaScript wrapper for r3browgd.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_R3BROWSEGADGET_H = 1;
  7. include("oops/r3gadget.js")
  8. include("oops/r3flist.js")
  9.  
  10.  
  11. var R3CLID_BROWSEGADGET = 278;
  12.  
  13.  
  14.  
  15.  
  16. // Description: Private method.    
  17.  
  18. R3BRGM_BROWSESTR = 278000;
  19.  
  20. function mR3BRGM_BROWSESTR() {
  21.   DoA(this.r3obj, 278000, 0, R3TID_INTEGER, 0);
  22. }
  23.  
  24. // Description: Called by 'Browse' button or the user (see NoUserInterface). when the user selects a
  25. //      string, the caller is informed through mapchanges
  26.  
  27. R3BRGM_OPENBROWSEWINDOW = 278001;
  28.  
  29. function mR3BRGM_OPENBROWSEWINDOW() {
  30.   DoA(this.r3obj, 278001, 0, R3TID_INTEGER, 0);
  31. }
  32.  
  33. // Description: Show the currently selected image.
  34.  
  35. R3BRGM_SHOWIMAGE = 278002;
  36.  
  37. function mR3BRGM_SHOWIMAGE() {
  38.   DoA(this.r3obj, 278002, 0, R3TID_INTEGER, 0);
  39. }
  40.  
  41.  
  42.  
  43.  
  44. R3BRGA_String = 278500;
  45. function SetR3BRGA_String(value) {
  46.   R3Set(this.r3obj, R3BRGA_String, value, R3TID_STRING, 0); 
  47. }
  48.  
  49. function GetR3BRGA_String() {
  50.   return R3Get(this.r3obj, R3BRGA_String, R3TID_STRING, 0); 
  51. }
  52.  
  53. R3BRGA_BrowsePrompt = 278501;
  54. function SetR3BRGA_BrowsePrompt(value) {
  55.   R3Set(this.r3obj, R3BRGA_BrowsePrompt, value, R3TID_STRING, 0); 
  56. }
  57.  
  58. R3BRGA_NoUserInterface = 278502;
  59. function SetR3BRGA_NoUserInterface(value) {
  60.   R3Set(this.r3obj, R3BRGA_NoUserInterface, value, R3TID_BOOLEAN, 0); 
  61. }
  62.  
  63. var R3BRGA_BrowseImage = 278503; // Boolean
  64. R3BRGA_ReportCancel = 278504;
  65. function SetR3BRGA_ReportCancel(value) {
  66.   R3Set(this.r3obj, R3BRGA_ReportCancel, value, R3TID_BOOLEAN, 0); 
  67. }
  68.  
  69.  
  70.  
  71. function r3Browsegadget () { 
  72.    this.base = r3God;
  73.    if(arguments.length) {
  74.       this.base(R3CLID_BROWSEGADGET, arguments);
  75.    }
  76.    // Methods
  77.    this.BROWSESTR=mR3BRGM_BROWSESTR;
  78.    this.OPENBROWSEWINDOW=mR3BRGM_OPENBROWSEWINDOW;
  79.    this.SHOWIMAGE=mR3BRGM_SHOWIMAGE;
  80.  
  81.    // Attributes
  82.    this.GetString=GetR3BRGA_String;
  83.    this.SetString=SetR3BRGA_String;
  84.    this.SetBrowsePrompt=SetR3BRGA_BrowsePrompt;
  85.    this.SetNoUserInterface=SetR3BRGA_NoUserInterface;
  86.    this.SetReportCancel=SetR3BRGA_ReportCancel;
  87. }
  88.  
  89. r3Browsegadget.prototype=new r3Gadget;
  90. // r3browgd.h_H